package string;

import java.util.Arrays;

public class Test2 {
    public static void main(String[] args) {
        String file = "image.png";
        String []data = file.split("\\.");
        System.out.println(Arrays.toString(data));
    }
}
